home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / gadget / r3cmpswi.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  2.0 KB  |  76 lines

  1.  
  2. // JavaScript wrapper for r3cmpswi.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_COMPASSWINDOW_H = 1;
  7. include("oops/r3window.js")
  8.  
  9.  
  10. var R3CLID_COMPASSWINDOW = 1261;
  11.  
  12.  
  13.  
  14.  
  15. // Returns: Boolean, TRUE if succesfull, FALSE if position is outside the compass or in the dead
  16. //      region
  17. // p1: Integer[], returns sector
  18. // p2: Integer[], returns distance
  19.  
  20. R3COMPASSWINDOWM_GETHITPOS = 1261000;
  21.  
  22. function mR3COMPASSWINDOWM_GETHITPOS(p1, p2) {
  23.   return   DoA3(this.r3obj, 1261000, p1, R3TID_INTEGER, R3TNF_ARRAY, p2, R3TID_INTEGER, R3TNF_ARRAY, 0, R3TID_INTEGER, 0);
  24. }
  25.  
  26.  
  27.  
  28.  
  29. R3COMPASSWINDOWA_DeadRadius = 1261500;
  30. function SetR3COMPASSWINDOWA_DeadRadius(value) {
  31.   R3Set(this.r3obj, R3COMPASSWINDOWA_DeadRadius, value, R3TID_INTEGER, 0); 
  32. }
  33.  
  34. function GetR3COMPASSWINDOWA_DeadRadius() {
  35.   return R3Get(this.r3obj, R3COMPASSWINDOWA_DeadRadius, R3TID_INTEGER, 0); 
  36. }
  37.  
  38. R3COMPASSWINDOWA_Radius = 1261501;
  39. function SetR3COMPASSWINDOWA_Radius(value) {
  40.   R3Set(this.r3obj, R3COMPASSWINDOWA_Radius, value, R3TID_INTEGER, 0); 
  41. }
  42.  
  43. function GetR3COMPASSWINDOWA_Radius() {
  44.   return R3Get(this.r3obj, R3COMPASSWINDOWA_Radius, R3TID_INTEGER, 0); 
  45. }
  46.  
  47. R3COMPASSWINDOWA_Circles = 1261502;
  48. function SetR3COMPASSWINDOWA_Circles(value) {
  49.   R3Set(this.r3obj, R3COMPASSWINDOWA_Circles, value, R3TID_INTEGER, 0); 
  50. }
  51.  
  52. function GetR3COMPASSWINDOWA_Circles() {
  53.   return R3Get(this.r3obj, R3COMPASSWINDOWA_Circles, R3TID_INTEGER, 0); 
  54. }
  55.  
  56.  
  57.  
  58. function r3Compasswindow () { 
  59.    this.base = r3God;
  60.    if(arguments.length) {
  61.       this.base(R3CLID_COMPASSWINDOW, arguments);
  62.    }
  63.    // Methods
  64.    this.GETHITPOS=mR3COMPASSWINDOWM_GETHITPOS;
  65.  
  66.    // Attributes
  67.    this.GetDeadRadius=GetR3COMPASSWINDOWA_DeadRadius;
  68.    this.SetDeadRadius=SetR3COMPASSWINDOWA_DeadRadius;
  69.    this.GetRadius=GetR3COMPASSWINDOWA_Radius;
  70.    this.SetRadius=SetR3COMPASSWINDOWA_Radius;
  71.    this.GetCircles=GetR3COMPASSWINDOWA_Circles;
  72.    this.SetCircles=SetR3COMPASSWINDOWA_Circles;
  73. }
  74.  
  75. r3Compasswindow.prototype=new r3Window;
  76. // r3cmpswi.h_H